<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subtitle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subtitle" class="form-control" name="row[subtitle]" type="text"
                   value="{$row.subtitle|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cover_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline plupload-preview" id="p-cover_image">
                <li class="col-xs-3"><a href="{$row.cover_image}"
                                        data-url="{$row.cover_image}"
                                        target="_blank" class="thumbnail"><img
                        src="{$row.cover_image}"
                        onerror="this.src='https://tool.fastadmin.net/icon/'+'{$row.cover_image}'.split('.').pop()+'.png';this.onerror=null;"
                        class="img-responsive"></a></li>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8" style="overflow: auto;height: 500px;">
            {$row.content}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tache')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tache" class="form-control" name="row[tache]" type="text" value="{$row.tache|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-duration" class="form-control" name="row[duration]" type="text"
                   value="{$row.duration|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Teacher_manifesto')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacher_manifesto" class="form-control" name="row[teacher_manifesto]" type="text"
                   value="{$row.teacher_manifesto|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Difficulty')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="first form-control" id="c-difficulty" disabled data-rule="required"name="row[difficulty]" >
                <option value="1" {eq name="1" value="$row.difficulty"} selected {/eq} >★</option>
                <option value="2" {eq name="2" value="$row.difficulty"} selected {/eq}>★★</option>
                <option value="3" {eq name="3" value="$row.difficulty"} selected {/eq}>★★★</option>
                <option value="4" {eq name="4" value="$row.difficulty"} selected {/eq}>★★★★</option>
                <option value="5" {eq name="5" value="$row.difficulty"} selected {/eq}>★★★★★</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="typeStatusList" item="vo"}
                <label for="row[type_status]-{$key}"><input id="row[type_status]-{$key}" name="row[type_status]" disabled
                                                            type="radio" value="{$key}" {in name="key"
                                                            value="$row.type_status" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Help_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-help_id" data-rule="required" data-source="helper/selectpage" class="form-control selectpage"
                   name="row[help_id]" disabled type="text" value="{$row.help_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_num" class="form-control" name="row[course_num]" type="number"
                   value="{$row.course_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tag_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tag_ids" data-rule="required" disabled data-source="tag/selectpage" data-multiple="true"
                   data-field="tag_name" class="form-control selectpage" name="row[tag_ids]" type="text"
                   value="{$row.tag_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subject_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_id" data-rule="required" data-source="subject/selectpage" data-field="subject_name"
                   class="form-control selectpage" disabled name="row[subject_id]" type="text"
                   value="{$row.subject_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grade_ids" data-rule="required" disabled data-source="grade/selectpage" data-multiple="true"
                   data-field="grade_name" class="form-control selectpage" name="row[grade_id]" type="text"
                   value="{$row.grade_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Classify_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classify_type" data-rule="required" disabled data-source="classify/selectpage"
                   class="form-control selectpage" name="row[classify_type]" type="text"
                   value="{$row.classify_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_free')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-is_free" class="form-control selectpicker" disabled name="row[is_free]">
                {foreach name="isFreeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_free" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" disabled name="row[price]" type="number"
                   value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_promotion')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-is_promotion" class="form-control selectpicker" disabled name="row[is_promotion]">
                {foreach name="isPromotionList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_promotion" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" {eq name="$row.is_promotion" value="0" } style="display: none" {
    /eq}>
    <label class="control-label col-xs-12 col-sm-2">{:__('Promotion_price')}:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-promotion_price" class="form-control" step="0.01" disabled name="row[promotion_price]" type="number"
               value="{$row.promotion_price|htmlentities}">
    </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-is_discount" class="form-control selectpicker" disabled name="row[is_discount]">
                {foreach name="isDiscountList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_discount" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group discount" {eq name="$row.is_discount" value="0" } style="display: none" {/eq} >
    <label class="control-label col-xs-12 col-sm-2">{:__('discount_indate')}:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-discount_indate" class="form-control" step="0.1" disabled name="row[discount_indate]"
               value="{$row.discount_indate|htmlentities}" type="number">
    </div>
    </div>
    <div class="form-group discount" {eq name="$row.is_discount" value="0" } style="display: none" {/eq} >
    <label class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-discount" class="form-control" step="0.01" disabled name="row[discount]"
               value="{$row.discount|htmlentities}" type="number">
    </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_trail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="is_trail-1">
                    <input id="is_trail-1" class="is_trail" name="row[is_trail]" disabled type="radio" value="1" {eq name="1"
                           value="$row.is_trail" }checked{/eq}/> 有</label>
                <label for="is_trail-0">
                    <input id="is_trail-0" class="is_trail" name="row[is_trail]" disabled type="radio" value="0" {eq name="0"
                           value="$row.is_trail" }checked{/eq}/> 无</label>
            </div>
        </div>
    </div>
    <div class="form-group mediauri" {eq name="$row.is_trail" value="0" } style="display: none" {
    /eq} >
    <label class="control-label col-xs-12 col-sm-2">{:__('Trial_video')}:</label>
    <div class="col-xs-12 col-sm-8">
        <div class="input-group">
            <input id="c-trial_video" class="form-control" size="50" name="row[trial_video]" type="text"
                   value="{$row.trial_video|htmlentities}">
            <div class="input-group-addon no-border no-padding">
                <span><button type="button" id="plupload-media_uri" class="btn btn-danger plupload"
                              data-input-id="c-trial_video" data-mimetype="video/mp4,video/flv" data-multiple="false"
                              data-maxsize="1024M" data-preview-id="p-trial_video"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                <span><button type="button" id="fachoose-media_uri" class="btn btn-primary fachoose"
                              data-input-id="c-trial_video" data-mimetype="video/mp4,video/flv" data-multiple="false"><i
                        class="fa fa-list"></i> {:__('Choose')}</button></span>
            </div>
            <span class="msg-box n-right" for="c-trial_video"></span>
        </div>
        <ul class="row list-inline plupload-preview" id="p-trial_video"></ul>
    </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_issue')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-is_issue" class="form-control selectpicker" disabled name="row[is_issue]">
                {foreach name="isIssueList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_issue" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Apply_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apply_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                   data-use-current="true" name="row[apply_start_time]" type="text" value="{$row.apply_start_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Apply_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apply_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                   data-use-current="true" name="row[apply_end_time]" type="text" value="{$row.apply_end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expiry_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expiry_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                   data-use-current="true" name="row[expiry_start_time]" type="text" value="{$row.expiry_start_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expiry_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expiry_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                   data-use-current="true" name="row[expiry_end_time]" type="text" value="{$row.expiry_end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_check')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="is_check-2">
                    <input id="is_check-2" class="is_check" name="row[is_check]" type="radio" value="2"/> 审核通过</label>
                <label for="is_check-3">
                    <input id="is_check-3" class="is_check" name="row[is_check]" type="radio" value="3"/> 审核不通过</label>
            </div>
        </div>
    </div>
    <div class="form-group check_remark" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Check_remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-check_remark" class="form-control" name="row[check_remark]" type="text"
                   value="{$row.check_remark|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
